package com.ym9527.jpa;


import com.ym9527.entity.CourseStudent;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface CourseStudentJpa extends JpaRepository<CourseStudent,Long> {

     List<CourseStudent> findByStudentId(Long studentId);

    List<CourseStudent> findByCourseId(Long courseId);

    CourseStudent findByCourseIdAndStudentId(Long courseId,Long studentId);

}
